# -*- coding:UTF-8 -*-
from flask import Flask
from flask import request

"""
@see  https://www.liaoxuefeng.com/wiki/897692888725344/923057057214336
"""
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def home():
    return '<h1>Home</h1>'


"""
    接受暗网js 传递过来的参数 进行访问 request.get_json()
"""


@app.route('/dark_web', methods=['GET', 'POST'])
def dark_web():
    json = request.get_json()
    print(json)
    return str(json)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8091)
